<template>
  <a-modal :maskClosable="false" :destroyOnClose="true" centered :footer="null" :width="500" v-model="visible">
    <div>
      <div class="line1 mb20">
        <img class="logo" :src="record.logo" alt="" />
        <span class="name">{{ record.orgName }}</span>
      </div>
      <div class="line2 mb20">数据来源：联盟组织</div>
      <div class="line3 mb20">
        <span class="item" v-for="item in record.industry" :key="item">{{ item }}</span>
      </div>
      <div class="line4 mb20">{{ record.details }}</div>
    </div>
  </a-modal>
</template>

<script>
export default {
  data() {
    return {
      visible: false,
      record: {},
    }
  },
  methods: {
    show(record) {
      this.record = record
      this.visible = true
    },
  },
}
</script>

<style lang="less" scoped>
.content {
  padding-bottom: 20px;
}

.line1 {
  display: flex;
  align-items: center;
  .logo {
    height: 40px;
    width: 40px;
    border-radius: 50%;
  }
  .name {
    font-size: 16px;
    font-weight: bold;
    margin-left: 10px;
  }
}
.line2 {
  color: #999;
}
.line3 {
  .item {
    padding: 5px 10px;
    border: 1px #ccc solid;
    margin-right: 10px;
    border-radius: 5px;
  }
}
.line4 {
  font-weight: bold;
}
.mb20 {
  margin-bottom: 20px;
}
</style>